import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  pages: [
    {
      path: 'pages/home/index',
      type: 'home',
      layout: 'tabbar',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '首页',
      },
    },
    {
      path: 'pages/order/index',
      type: 'page',
      layout: 'tabbar',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '订单',
      },
    },
    {
      path: 'pages/my/index',
      type: 'page',
      layout: 'tabbar',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '我的',
      },
    },
    {
      path: 'pages/my/about',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '关于我们',
      },
    },
    {
      path: 'pages/my/help',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '帮助中心',
      },
    },
    {
      path: 'pages/my/profile',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '个人中心',
      },
    },
    {
      path: 'pages/pay/index',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '支付',
      },
    },
    {
      path: 'pages/orderSearch/index',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '优车查',
      },
    },
    {
      path: 'pages/login/index',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '登录',
      },
    },
    {
      path: 'pages/agent/index',
      type: 'page',
      layout: 'tabbar',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '代理商',
      },
    },
    {
      path: 'pages/recharge/index',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '充值',
      },
    },
    {
      path: 'pages/contract/index',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '交易合同',
      },
    },
    {
      path: 'pages/my/signature',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '签名绑定',
      },
    },
    {
      path: 'pages/order/detail',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '订单详情',
      },
    },
    {
      path: 'pages/report/index',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '报告预览',
      },
    },
    {
      path: 'pages/withdraw/index',
      type: 'page',
      layout: 'default',
      style: {
        navigationStyle: 'custom',
        navigationBarTitleText: '提现',
      },
    },
  ],
  globalStyle: {
    backgroundColor: '@bgColor',
    backgroundColorBottom: '@bgColorBottom',
    backgroundColorTop: '@bgColorTop',
    backgroundTextStyle: '@bgTxtStyle',
    navigationBarBackgroundColor: '#000000',
    navigationBarTextStyle: '@navTxtStyle',
    navigationBarTitleText: 'Vitesse-Uni',
    navigationStyle: 'custom',
  },
  tabBar: {
    custom: true,
    color: '#999999',
    selectedColor: '#018d71',
    backgroundColor: '#F8F8F8',
    borderStyle: 'black',
    height: '50px',
    fontSize: '10px',
    iconWidth: '24px',
    spacing: '3px',
    list: [
      {
        pagePath: 'pages/home/index',
        text: '首页',
        icon: 'iconfont icon-cheliang',
        iconType: 'iconfont',
      },
      {
        pagePath: 'pages/order/index',
        text: '订单',
        icon: 'iconfont icon-dingdan',
        iconType: 'iconfont',
      },
      {
        pagePath: 'pages/agent/index',
        text: '代理商',
        icon: 'iconfont icon-dailishangguanli',
        iconType: 'iconfont',
      },
      {
        pagePath: 'pages/my/index',
        text: '我的',
        icon: 'iconfont icon-wode1',
        iconType: 'iconfont',
      },
    ],
  },
  easycom: {
    custom: {
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)': 'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },
  // tabBar: {
  //   backgroundColor: "@tabBgColor",
  //   borderStyle: "@tabBorderStyle",
  //   color: "@tabFontColor",
  //   selectedColor: "@tabSelectedColor",
  // },
})
